package co.gov.medellin.sdep.sisdep.model.dao.impl;

import java.util.List;

import org.springframework.transaction.PlatformTransactionManager;
//import org.springframework.transaction.TransactionDefinition;
//import org.springframework.transaction.TransactionStatus;
//import org.springframework.transaction.support.DefaultTransactionDefinition;

//import co.gov.medellin.sdep.sisdep.model.Articulo;
import co.gov.medellin.sdep.sisdep.model.Articulo;
import co.gov.medellin.sdep.sisdep.model.dao.ArticuloDAOImpl;

//import co.gov.medellin.sdep.sisdep.model.Articulo;

public class ArticuloDAOTImpl extends ArticuloDAOImpl implements IArticuloDAOT {

	/** manejador de transacciones para ArticuloDAOTImpl */
	private PlatformTransactionManager transactionManager;
	/**
	 * constructor por defecto
	 */
	public ArticuloDAOTImpl() {
	}

	/**
	 * retorna el transactionManager
	 * @return
	 */
	public PlatformTransactionManager getTransactionManager() {
		return transactionManager;
	}

	/**
	 * establece el transaction manager establecido en la configuracion
	 * @param transactionManager
	 */
	public void setTransactionManager(PlatformTransactionManager transactionManager) {
		this.transactionManager = transactionManager;
	}

	public List loadMasterListItemsRetained(Articulo articulo) {
		return findListByCriteriaQuery.runQuery(articulo);
	}

}
